package com.wk.service.implement;

import com.wk.dao.Admindao;
import com.wk.pojo.Class;
import com.wk.pojo.User;
import com.wk.service.Adminservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: thesis
 * @description: 管理员的实现类
 * @author: 王侃
 * @create: 2020-03-10 10:29
 **/
@Service
public class Adminserviceimpl implements Adminservice {

    @Autowired
    Admindao admindao;

    @Override
    public List<User> selectbyallstu() {
        return admindao.selectbyallstu();
    }

    @Override
    public List<Class> selectbyallclass() {
        return admindao.selectbyallclass();
    }

    @Override
    public void updatebyid_status(Integer id, Integer status) {
        admindao.updatebyid_status(id,status);
    }

    @Override
    public List<User> selectbyallteacher() {
        return admindao.selectbyallteacher();
    }

    @Override
    public void insertintoclass(String class_name) {
        admindao.insertintoclass(class_name);
    }

    @Override
    public Class selectbyidclass(Integer id) {
        return admindao.selectbyidclass(id);
    }

    @Override
    public void updatebyclass(Class myclass) {
        admindao.updatebyclass(myclass);
    }
}
